package com.znxs.bs_c.common;

import lombok.Getter;

/**
 * author         软件21304赵鹏鑫
 * date           2023/8/16 15:56
 * Znxs~Product   [statusCode]
 *
 * @author 左拿*/
@Getter
public enum Status {
    SUCCESS(true, 200, "成功"),
    SystemError(false, 500, "系统错误"),
    InsufficientPermissions(false,401,"权限不足"),
    ParamsError(false,400,"参数错误"),
    OtherError(false,600,"其他错误异常");
    private Boolean success;
    private Integer code;
    private String message;

    Status(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
